# Copyright (c) 2023 Presto Labs Pte. Ltd.
# Author: leon

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}"
REPO_ROOT="$(git rev-parse --show-toplevel)"
cd "${REPO_ROOT}"

source ~/miniconda3/etc/profile.d/conda.sh
conda activate coin2_prod_env_310

# Run python script
echo "Args: $@"

PYTHONPATH="python" python -m python.coin.exchange.uniswap_v3_arbitrum.rest.writer "$@" \
  2>> "${REPO_ROOT}/log_uniswapv3_arbitrum_rest_writer"
